import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
	state: {
        pageNum: 10,
        supplier_id: '',
        system_type:'',//1平台  0供货商
        user_name:''
    },
    mutations: {
        SET_SUPPLIER_ID(state,id) {
         state.supplier_id = id
        },
        SET_SYSTEM_TYPE(state,type){
            state.system_type = type
        },
        SET_USER_NAME(state,uname){
            state.user_name = uname
        }
    }
})

export default store
